package com.jinhua.admin.entity;

import com.jinhua.admin.vo.OrderVo;


import com.jinhua.mybatis.annotation.Column;
import com.jinhua.mybatis.annotation.Table;
import com.jinhua.mybatis.entity.BaseEntity;
import com.jinhua.mybatis.util.AutoGenerateCode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Copyright
 *
 * @Author WuHuang
 * @Date 2022/2/22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(commit = "订单表", prefix = "do")
public class OrderPo extends BaseEntity<OrderPo> {
    private static final long serialVersionUID = -4451565235677816700L;

    @Column(commit = "用户名", length = 10)
    private String userName;
    @Column(commit = "商品名称", length = 10)
    private String goodsName;

    public static void main(String[] args) {
        AutoGenerateCode.generate(OrderPo.class);
    }
    public OrderVo  copyOrderVo() {
  OrderVo  vo=new OrderVo(); 
  org.springframework.beans.BeanUtils.copyProperties(this, vo); 
   return vo;
     }
 
}
